﻿using CleanArchitecture.Core.SharedKernel;
using CleanArchitecture.Infrastructure.Entities.AdminUsers;

namespace CleanArchitecture.Infrastructure.Entities.Business
{
    /// <summary>
    /// Represents a permission of bus_column and role mapping class
    /// </summary>
    public partial class AdminRoleBusColumnMapping : BaseEntity
    {
        /// <summary>
        /// Gets or sets the adminrole identifier
        /// </summary>
        public int FKAdminRoleId { get; set; }

        /// <summary>
        /// Gets or sets the Bus_Column identifier
        /// </summary>
        public int FKColumnId { get; set; }
        /// <summary>
        /// 记录分配给文章管理/博客管理等基于栏目菜单的功能模块的操作按钮(sys_datadic Id)
        /// </summary>
        public string AssignedButtonIds { get; set; }
        /// <summary>
        /// 记录基于用户角色的栏目菜单是否有使用权限
        /// </summary>
        public EntityEnumConfig.YesorNo IsAllow { get; set; }
        public string AuthorizedButtonIds { get; set; }
        /// <summary>
        /// Gets or sets the permission record
        /// </summary>
        public virtual Column Column { get; set; }

        /// <summary>
        /// Gets or sets the customer role
        /// </summary>
        public virtual AdminRole AdminRole { get; set; }
    }
}
